import request from '@/utils/request'

// 查询竞赛分值列表
export function listScore(query) {
  return request({
    url: '/learnmanagement/score/list',
    method: 'get',
    params: query
  })
}

// 查询竞赛分值详细
export function getScore(id) {
  return request({
    url: '/learnmanagement/score/' + id,
    method: 'get'
  })
}

// 新增竞赛分值
export function addScore(data) {
  return request({
    url: '/learnmanagement/score',  
    method: 'post',
    data: data
  })
}

// 修改竞赛分值
export function updateScore(data) {
  return request({
    url: '/learnmanagement/score',
    method: 'put',
    data: data
  })
}

// 删除竞赛分值
export function delScore(id) {
  return request({
    url: '/learnmanagement/score/' + id,
    method: 'delete'
  })
}
